<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script src="./01-01-04-promise.js"></script>
    <script>
        let promise = new MyPromise((resolve, reject) => {
            resolve('我成功了！')
            // reject('我失败了')
        })

        promise.then(res => {
            console.log(res);
            
        }, reason => {
            console.log(reason);
            
        })
    </script>
</body>
</html>